package com.genius.smsweb.studentmanage;

import com.genius.smsbase.Controller.GenericController;
import com.genius.smsdao.studentmanage.domain.Grade;
import com.genius.smsservice.studentmanage.service.GradeManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mie
 *
 * inherit public interface
 */

@Api(tags = "学生管理-班级", description = "GradeController")
@RestController
@RequestMapping(value = "grade")
public class GradeController extends GenericController<Grade,Long, GradeManager> {
    GradeManager gradeManager;

    /**
     *
     * @param gradeManager
     */
    @Autowired
    public void setGradeManager(GradeManager gradeManager) {
        this.gradeManager = gradeManager;
        this.manager = this.gradeManager;
    }
}
